package com.stylefeng.guns.modular.apple_sign_task_manage.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 签包任务表
 * </p>
 *
 * @author godrui
 * @since 2020-06-20
 */
@TableName("sign_tasks")
public class SignTasks extends Model<SignTasks> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 设备标示
     */
    @TableField("device_udid")
    private String deviceUdid;
    /**
     * app标识
     */
    @TableField("app_code")
    private String appCode;
    /**
     * 苹果账号
     */
    @TableField("apple_account")
    private String appleAccount;
    /**
     * 签包时间
     */
    @TableField("sign_time")
    private Date signTime;
    /**
     * 签包状态，0 待签 1 签包中 2 签包成功 3 添加设备失败 4 签包失败(添加设备成功)
     */
    private Integer status;
    /**
     * 输出路径
     */
    @TableField("output_path")
    private String outputPath;
    /**
     * 任务批次标识
     */
    @TableField("chunk_id")
    private String chunkId;
    /**
     * 苹果账号密码
     */
    @TableField("apple_account_pwd")
    private String appleAccountPwd;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceUdid() {
        return deviceUdid;
    }

    public void setDeviceUdid(String deviceUdid) {
        this.deviceUdid = deviceUdid;
    }

    public String getAppCode() {
        return appCode;
    }

    public void setAppCode(String appCode) {
        this.appCode = appCode;
    }

    public String getAppleAccount() {
        return appleAccount;
    }

    public void setAppleAccount(String appleAccount) {
        this.appleAccount = appleAccount;
    }

    public Date getSignTime() {
        return signTime;
    }

    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getOutputPath() {
        return outputPath;
    }

    public void setOutputPath(String outputPath) {
        this.outputPath = outputPath;
    }

    public String getChunkId() {
        return chunkId;
    }

    public void setChunkId(String chunkId) {
        this.chunkId = chunkId;
    }

    public String getAppleAccountPwd() {
        return appleAccountPwd;
    }

    public void setAppleAccountPwd(String appleAccountPwd) {
        this.appleAccountPwd = appleAccountPwd;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SignTasks{" +
        "id=" + id +
        ", deviceUdid=" + deviceUdid +
        ", appCode=" + appCode +
        ", appleAccount=" + appleAccount +
        ", signTime=" + signTime +
        ", status=" + status +
        ", outputPath=" + outputPath +
        ", chunkId=" + chunkId +
        ", appleAccountPwd=" + appleAccountPwd +
        "}";
    }
}
